#include <QCoreApplication>

#include <iostream>
using namespace std;

int main()
{
  int K = 0, A = 3, N;
  cout << "vvedite chislo: " << endl;
  cin >> N;
  while(A < N)
  {
    A=A*3;
    K++;
  }
  cout << "Otvet: " << K << endl;
  return 0;
}
